<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>主页面</title>
</head>
<body>
	
	<table border=1>
		<tr>
			<td>赛事编号</td>
			<td>赛事</td>
			<td>时间</td>
			<td>天气</td>
			<td>主队vs客队</td>
			<td>0球</td>
			<td>1球</td>
			<td>2球</td>
			<td>3球</td>
			<td>4球</td>
			<td>5球</td>
			<td>6球</td>
			<td>7球</td>
			<td>数据</td>
			<td>胜支持率</td>
			<td>平支持率</td>
			<td>负支持率</td>
			<td>操作</td>
		</tr>
		<c:forEach items="${games}" var="g">
		<tr>
			<td>周二${g.id}</td>
			<td>${g.matchs}</td>
			<td>${g.match_time}</td>
			<td>${g.weather}</td>
			<td>${g.host_team}vs${g.guest_team}</td>
			<td>${g.goal0_rate}</td>
			<td>${g.goal1_rate}</td>
			<td>${g.goal2_rate}</td>
			<td>${g.goal3_rate}</td>
			<td>${g.goal4_rate}</td>
			<td>${g.goal5_rate}</td>
			<td>${g.goal6_rate}</td>
			<td>${g.goal7_rate}</td>
			<td>特征</td>
			<td><fmt:formatNumber value="${g.win_rate}" type="percent"/></td> 
			<td><fmt:formatNumber value="${g.level_rate}" type="percent"/></td> 
			<td><fmt:formatNumber value="${g.load_rate}" type="percent"/></td> 
			
			<td><a href="deleteGoal?id=${g.id}">删除</a> 
			<a href="toupdateGoal?id=${g.id}">修改</a></td> 
		</tr>
		</c:forEach>
		<td><a href="tosaveGoal?id=${g.id}">添加</a></td> 
	</table>
	<!-- <input type="button" value="个人信息修改" onclick="window.location.href='update2.jsp'">  -->
</body>
</html>